package com.abapi.pay.admin.support.db.dto.response;

import com.abapi.cloud.common.protocol.Result;
import lombok.Data;

/**
 * @Author ldx
 * @Date 2020/2/18 16:11
 * @Description
 * @Version 1.0.0
 */
@Data
public class TableResult extends Result {

    private String msg;
    private String code;
    private Object data;
    private Long count;

    public TableResult(String code, String message,Object data,Long count){
        this.count = count;
        this.code = code;
        this.msg = message;
        this.data = data;
    }

    public static Result success(String code, String message, Object data,Long count) {
        TableResult result = new TableResult(code, message, data, count);
        return result;
    }

}
